#include <stdio.h>
main()
{  	 	 	 	   	
    int  n = 0, t;
    for (t = 0; t < 50 * 7; t++)
    {  	 	 	 	   	
            if (t % 5 == 0 && t % 7 == 0)
            {  	 	 	 	   	
                n++;
                continue;
            }
            if (t % 6 == 0 && t % 7 == 0)
            {  	 	 	 	   	
                n++;
                continue;
            }
            if (t % 6 == 0 && t % 5 == 0)
            {  	 	 	 	   	
                n++;
                continue;
            }

    }
    printf("n=%d\n", n);
}  	 	 	 